Modules and git scripts


In [35]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

In [ ]:
%%bash
git commit

Code Practice


In [21]:
df = pd.DataFrame(np.random.randn(10,5), index=list(range(10)), columns = list("ABCDE"))
df


Out[21]:
A B C D E
0 -0.212862 -1.011194 -1.138199 -0.932804 -0.279693
1 0.194660 0.299546 -0.881936 1.489913 1.390468
2 0.572256 -0.169098 1.397204 1.249620 -1.191226
3 1.465381 0.433794 1.531289 -2.227304 0.254160
4 1.087839 -0.222498 0.063400 1.210815 -1.343562
5 1.824270 0.647035 -1.395918 0.102228 -1.226248
6 0.452942 -0.251262 -0.407154 1.150705 0.653690
7 1.966258 -0.838877 0.622679 -0.937318 -0.241825
8 1.088565 0.795834 0.332464 0.738309 -0.001361
9 0.350660 -1.868643 1.152331 0.641795 -0.872482

In [32]:
df[:3]
df["A"]
df[2:3]


Out[32]:
A B C D E
2 0.572256 -0.169098 1.397204 1.24962 -1.191226

In [ ]: